﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecruitStudents.Utility.Const
{
    public class ConstAppConfig
    {
        /// <summary>
        /// Pad评分评分页面信息展示配置A
        /// </summary>
        public const string PadExamScorePageSettingA = "PadExamScorePageSettingA";
        /// <summary>
        ///  Pad评分评分页面信息展示配置B
        /// </summary>
        public const string PadExamScorePageSettingB = "PadExamScorePageSettingB";

        /// <summary>
        /// 状态
        /// </summary>
        public const string KY = "可用";
        public const string BKY = "不可用";
        /// <summary>
        /// 用户类别
        /// </summary>
        public const string KS = "考生";
        public const string WZ = "网站";

        /// <summary>
        /// 通过
        /// </summary>
        public const string TG = "通过";
        /// <summary>
        /// 未通过
        /// </summary>
        public const string WTG = "未通过";
        /// <summary>
        /// 通过 (1)
        /// </summary>
        public const string TG_Value = "1";
        /// <summary>
        /// 未通过 (0)
        /// </summary>
        public const string WTG_Value = "0";

        public static string GetIsPass(string strValue)
        {
            var result = "";
            switch (strValue)
            {
                case TG_Value:
                    result = TG;
                    break;
                case WTG_Value:
                    result = WTG;
                    break;
                default:
                    result = WTG;
                    break;
            }
            return result;
        }

        /// <summary>
        /// 已考试
        /// </summary>
        public const string YKS = "已考试";
        /// <summary>
        /// 未考试
        /// </summary>
        public const string WKS = "未考试";
        /// <summary>
        /// 已考试 (1)
        /// </summary>
        public const string YKS_Value = "1";
        /// <summary>
        /// 未考试 (0)
        /// </summary>
        public const string WKS_Value = "0";
        /// <summary>
        /// 根据考试值来获取考试标题
        /// </summary>
        /// <param name="strValue"></param>
        /// <returns></returns>
        public static string GetIsExam(string strValue)
        {
            var result = "";
            switch (strValue)
            {
                case YKS_Value:
                    result = YKS;
                    break;
                case WKS_Value:
                    result = WKS;
                    break;
                default:
                    result = WKS;
                    break;
            }
            return result;
        }


        /// <summary>
        /// 已缴费
        /// </summary>
        public const string YJF = "已缴费";
        /// <summary>
        /// 未缴费
        /// </summary>
        public const string WJF = "未缴费";
        /// <summary>
        /// 已缴费 (1)
        /// </summary>
        public const string YJF_Value = "1";
        /// <summary>
        /// 未缴费 (0)
        /// </summary>
        public const string WJF_Value = "0";
        /// <summary>
        /// 根据缴费值来获取缴费标题
        /// </summary>
        /// <param name="strValue"></param>
        /// <returns></returns>
        public static string GetIsFee(string strValue)
        {
            var result = "";
            switch (strValue)
            {
                case YJF_Value:
                    result = YJF;
                    break;
                case WJF_Value:
                    result = WJF;
                    break;
                default:
                    result = WJF;
                    break;
            }
            return result;
        }

        /// <summary>
        /// 算分规则(总分SUM)
        /// </summary>
        public const string CalculateType_SUM = "SUM";
        /// <summary>
        /// 算分规则(平均分AVG)
        /// </summary>
        public const string CalculateType_AVG = "AVG";
        /// <summary>
        /// 算分规则(去除最高/最低分取平均分AVG_OUT)
        /// </summary>
        public const string CalculateType_AVG_OUT = "AVG_OUT";
        /// <summary>
        /// 算分规则(加权取平均分AVG_WEIGHT)
        /// </summary>
        public const string CalculateType_AVG_WEIGHT = "AVG_WEIGHT";
        /// <summary>
        /// 算分规则类型
        /// </summary>
        public static Dictionary<string, string> DicExamCalculateTypeFormType = new Dictionary<string, string>() {
            {CalculateType_SUM,"总分"},{CalculateType_AVG,"平均分"},{CalculateType_AVG_OUT,"去除最高/最低分取平均分"},{CalculateType_AVG_WEIGHT,"加权取平均分"}
        };

        /// <summary>
        /// 算分考生类型
        /// </summary>
        public static Dictionary<string, string> DicExamCalculateTypeFormSignUpType = new Dictionary<string, string>() {
            {"0","所有考生"},{"1","管乐考生"},{"2","弦乐考生"}
        };

        /// <summary>
        /// 算分规则权重
        /// </summary>
        public static Dictionary<string, string> DicExamCalculateTypeFormWeight = new Dictionary<string, string>() {
            {"1.00","1.00"},{"0.70","0.70"},{"0.30","0.30"}
        };

        /// <summary>
        /// 评分方式展示方式（100001：单选     100002：分数）
        /// </summary>
        public static Dictionary<string, string> DicPadScoreType = new Dictionary<string, string>() {
            {"100001","单选"},{"100002","分数"},{"100003","滑动"}
        };

        /// <summary>
        /// Pad类型
        /// </summary>
        public static Dictionary<string, string> DicPadType = new Dictionary<string, string>() {
            {"1","Pad"},{"2","电脑"}
        };

        /// <summary>
        /// 用户类型
        /// </summary>
        public static Dictionary<string, string> DicUserType = new Dictionary<string, string>() {
            {"0","超级管理员"},{"1","考务"},{"2","秘书"},{"3","招办"},{"4","信息录入"},{"5","财务"}
        };

        /// <summary>
        /// 专业性别限制
        /// </summary>
        public static Dictionary<string, string> DicLimitSexType = new Dictionary<string, string>() {
            {"0","全部"},{"1","男"},{"2","女"}
        };

        /// <summary>
        /// 来源方式
        /// </summary>
        public static Dictionary<string, string> DicConsultResorceType = new Dictionary<string, string>() {
            {"","全部"},{"IOS","苹果App"},{"Android","安卓App"},{"Client","客户端"},{"Web","网站Web"}
        };

        /// <summary>
        /// 是否合格
        /// </summary>
        public static Dictionary<string, string> DicIsPass = new Dictionary<string, string>() {
            {"","全部"},{"0","未通过"},{"1","通过"}
        };
        /// <summary>
        /// 是否下载
        /// </summary>
        public static Dictionary<string, string> DicIsDownload = new Dictionary<string, string>() {
            {"","全部"},{"0","未下载"},{"1","已下载"}
        };
        /// <summary>
        /// 是否缴费
        /// </summary>
        public static Dictionary<string, string> DicIsFee = new Dictionary<string, string>() {
            {"","全部"},{"0","未缴费"},{"1","已缴费"}
        };
    }
}
